package com.ml.ws.model;

import java.io.Serializable;
import java.math.BigDecimal;

import lombok.Data;

@Data
public class TradeDto implements Serializable {
	
	private static final long serialVersionUID = -2805354388611265742L;
	
//	@ApiModelProperty(value = "ID")
	private Long id;
//	@ApiModelProperty(value = "时间戳")
	private Long timestamp;
//	@ApiModelProperty(value = "成交数量")
	private BigDecimal volume;
//	@ApiModelProperty(value = "成交价")
	private BigDecimal price;
//	@ApiModelProperty(value = "吃单方")
	private String taker;
//	@ApiModelProperty(value = "相对于最近一次价格的涨跌，1涨，-1跌")
	private Integer upOrDown;
	



	public String toString() {
		return id + "-" + timestamp + "-" + volume + "-" + price + "-" + taker + "-" + upOrDown;
	}
}